package com.newsReader.banner.api;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.jfinal.core.Controller;
import com.newsReader.banner.model.Banner;

public class BannerApi  extends Controller{
	/**
	 * 指定路径,route里的url+/getModel 获取用户Model
	 * @return 
	 */
	public void query(){
		Map<String, Object> map = new HashMap<String,Object>();
		List<Banner> bannerlist = Banner.dao.findBannerList();
		map.put("bannerlist", bannerlist);
	    renderJson(bannerlist);
	}

}
